{{extend "tasks_layout.html"}}

{{block sub_menu}}
{{sub_menu(menu_items, 'tasks', task_type)}}
{{end}}

{{block content_tool}}
    {{include "inc_message.html"}}
    {{if task_type != 'researches':}}
    <a class="btn btn-blue" href="{{=get_url('add')}}">{{=add_button_text}}</a>
    {{else:}}
    {{message('可研任务现已并入开发任务之中，如要创建请进入 <a href="/tasks/develop/list?only_mine=1">开发任务</a>。', 'attention')}}
    {{pass}}
{{end}}

{{block content_main}}
<div class="content">
    <div class="query">
        {{embed query_form}}
    </div>
    {{table_id='tasks'}}
    {{include "inc_table.html"}}
    {{use "jqutils"}}
    <script>
        $(function(){
            create_table("{{=request.path}}", download=true);
        });
    </script>
</div>
{{end}}